import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import index from "./router";
import antd,{message} from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css';
const app = createApp(App)
import * as Icons from '@ant-design/icons-vue'
// 循环使用全部全部图标
for (const i in Icons) {
    // 全局注册一下组件
    app.component(i, Icons[i])
}
app.config.globalProperties.$message = message;

app.use(antd).use(index).mount('#app')

const { send, receive } = window.myAPI
window.addEventListener('contextmenu', (event) => {
    send("show-context-menu",JSON.stringify({x:event.x,y:event.y}))
})
